package com.zz.common.annotation;

import com.zz.common.protocol.handle.DefaultProtocolHandle;
import com.zz.common.protocol.handle.ProtocolHandle;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 消息协议注解
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Protocol {

    String value() default "default";

    Class<? extends ProtocolHandle> handle() default DefaultProtocolHandle.class;
}
